package graph.parts;

import graph.Part;
import ogl.vecmath.Vector;
import ogl.vecmathimp.MatrixImp;

public class Light extends Part {
	private MatrixImp matrix;
	private Vector position;
	
	public Light(Vector position) {
		matrix = (MatrixImp) MatrixImp.identity;
		matrix = (MatrixImp) matrix.mult(new MatrixImp(new float[]{1,0,0,0, 0,1,0,0, 0,0,1,0, position.x(),position.y(),position.z(),1}));
	}

	public Light() {
		matrix = (MatrixImp) MatrixImp.identity;
	}

	@Override
	public MatrixImp getMatrix() {
		return matrix;
	}

	@Override
	public void setMatrix(MatrixImp m) {
		matrix = m;
	}
	
	public Vector getPosition() {
		return position;
	}

	public void setPosition(Vector v) {
		position = v;
	}

	@Override
	public void draw(MatrixImp m) {
		
	}

	@Override
	public MatrixImp findCamera() {
		return null;
	}

	@Override
	public MatrixImp findLight() {
		return matrix;
	}

}
